.foxui-picker-header {
    button {
        color: $--color-text-secondary;

        &.prev-year-btn,
        &.prev-month-btn {
            float: left;
        }

        &.next-month-btn,
        &.next-year-btn {
            float: right;
        }
    }

    span {
        cursor: pointer;
        margin: 0 $--padding-extra-small;
        transition: $--background-color-transition-base;

        &:hover {
            color: $--color-primary-light-1;
        }
    }
}

.foxui-picker-content {
    table {
        table-layout: fixed;
        width: 100%;

        tr {
            display: table-row;
            vertical-align: inherit;
            border-color: inherit;

            td {
                color: #606266;

                &.available {
                    cursor: pointer;

                    &:hover {
                        color: #409eff;
                    }
                }

                &.today {
                    span {
                        color: #409eff;
                        font-weight: 700;
                    }
                }

                &.current {
                    span {
                        color: #409eff;
                    }
                }
            }
        }

        &.foxui-date-table {
            font-size: 12px;
            user-select: none;

            tr {
                th {
                    padding: 5px;
                    color: #606266;
                    font-weight: 400;
                    border-bottom: 1px solid #ebeef5;
                    display: table-cell;
                    vertical-align: inherit;
                    text-align: center;
                }

                td {
                    width: 32px;
                    height: 30px;
                    padding: 4px 0;
                    box-sizing: border-box;
                    text-align: center;
                    position: relative;

                    &.prev-month,
                    &.next-month {
                        color: #c0c4cc;
                    }

                    div {
                        height: 30px;
                        padding: 3px 0;
                        box-sizing: border-box;

                        span {
                            width: 24px;
                            height: 24px;
                            display: block;
                            margin: 0 auto;
                            line-height: 24px;
                            position: absolute;
                            left: 50%;
                            transform: translateX(-50%);
                            border-radius: 50%;
                        }
                    }
                }
            }
        }

        &.foxui-month-table,
        &.foxui-year-table {
            font-size: $--font-size-extra-small;
            margin: -1px;
            border-collapse: collapse;
        }

        &.foxui-month-table {
            tr {
                td {
                    text-align: center;
                    padding: 20px 3px;
                    cursor: pointer;

                    .cell {
                        width: 48px;
                        height: 32px;
                        display: block;
                        line-height: 32px;
                        margin: 0 auto;
                    }
                }
            }
        }

        &.foxui-year-table {
            tr {
                td {
                    text-align: center;
                    padding: 20px 3px;
                    cursor: pointer;

                    .cell {
                        width: 48px;
                        height: 32px;
                        display: block;
                        line-height: 32px;
                        margin: 0 auto;
                    }
                }
            }
        }
    }
}

// foxui-datetime-picker -> foxui-picker-top
.foxui-datetime-picker {
    .foxui-picker-top__inner {
        padding: 0 $--padding-base $--padding-small - 2 $--padding-base;
        border-bottom: $--border-base;
        position: relative;

        input {
            float: left;
            width: calc(50% - 6px);

            &:first-child {
                margin-right: 12px;
            }
        }
    }
}

// foxui-datetime-picker 内嵌 时间选择
.foxui-picker__inner-menu {
    top: 40px;
    right: 12px;
    @include popper-panel;
}

.foxui-picker__inner-body {
    padding: $--padding-medium $--padding-medium 0 $--padding-medium;
}

.foxui-picker__inner-bottom {
    padding-top: $--padding-extra-small;
    border-top: $--border-base;
    text-align: right;
    padding-right: $--padding-medium;
    padding-bottom: $--padding-extra-small;
}
